package com.gluck.cases.common.utils.enums;

/**
 * @ClassName AdminState
 * @Desc 用户账户状态枚举类型
 * @Author I am Gluck
 * @Date 2022/5/1 - 2:15 下午
 **/
public enum UserStatusEnum {

    NOMARL(0, "正常"),
    STOP(1, "停用");

    private Integer code;
    private String name;

    private UserStatusEnum(Integer code, String name) {
        this.setCode(code);
        this.setName(name);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return this.getName();
    }
}
